package com._520it.crm.mapper;

import com._520it.crm.domain.InsuranceInfoChange;
import com._520it.crm.query.InsuranceInfoChangeQueryObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
@Repository
public interface InsuranceInfoChangeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InsuranceInfoChange record);

    InsuranceInfoChange selectByPrimaryKey(Long id);

    List<InsuranceInfoChange> selectAll();

    int updateByPrimaryKey(InsuranceInfoChange record);

    int queryForCount(InsuranceInfoChangeQueryObject queryObject);
    List<InsuranceInfoChange> queryForList(InsuranceInfoChangeQueryObject queryObject);

    InsuranceInfoChange approvalByInsurancePolicyNumber(String insurancePolicyNumber);

    void insertMutiplate(InsuranceInfoChange insuranceInfoChange);

    //查询所有批改表中有审核时间的数据
    List<InsuranceInfoChange> queryForRows();

    void setInsuranceInfo(@Param("employeeSn") String s, @Param("date") Date date, @Param("text") String text, @Param("id") Long id);


    void insertbyorderbill(InsuranceInfoChange insuranceInfoChange);
}